

set(TEST_NAME MONITOR64x32_TEST)
message(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>${TEST_NAME}>>>>>>>>>>>>>>>>>>>>>>>>>")

include_directories(${PROJECT_SOURCE_DIR}/modules/Monitor64x32/include)
include_directories(${PROJECT_SOURCE_DIR}/modules/CHIP8/include)
set(${TEST_NAME}_SRC_PATH ${PROJECT_SOURCE_DIR}/test/test_monitor16x16)
set(${TEST_NAME}_SOURCES ${${TEST_NAME}_SRC_PATH}/test_monitor64x32.cpp)


file(GLOB ${TEST_NAME}_HEADERS ${PROJECT_SOURCE_DIR}/modules/Monitor64x32/include/*.*)
foreach (FILE ${${TEST_NAME}_HEADERS})
    message(STATUS FIND: ${FILE})
endforeach ()
qt5_wrap_cpp(${TEST_NAME}_CPP_FILES ${${TEST_NAME}_SOURCES})

qt5_wrap_cpp(${TEST_NAME}_H_FILES ${${TEST_NAME}_HEADERS})

add_executable(${TEST_NAME}
        ${${TEST_NAME}_SOURCES}
        ${${TEST_NAME}_CPP_FILES}
        ${${TEST_NAME}_H_FILES}
        )
target_link_libraries(${TEST_NAME}
        Monitor64x32
        CHIP8
        Qt5::Core Qt5::Widgets Qt5::Gui Qt5::OpenGL Qt5::Network
        ${OPENGL_LIBRARIES} ${GLUT_LIBRARY}
        )
qt5_use_modules(${TEST_NAME} Core Widgets Gui OpenGL Network)
message("<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<${TEST_NAME} DONE<<<<<<<<<<<<<<<<<<<<<<<<<<<")

